﻿@model Adams.Web.Areas.MyAdams.Models.Donations.Confirm.PageLoad
@{
    Layout = "~/Views/Shared/_MembershipLayout.cshtml";
}
@section Head{
}
<h1>Donation Confirmation</h1>
@if (Model.Recurring)
{
    <text>You are about to make a recurring donation of <b>@string.Format("{0:C}", Model.RecurringDonation.Amount)</b>
    to <b>@Model.RecurringDonation.Bucket.Name</b> on the credit card <b>XXXX-XXXX-XXXX-@Model.CreditCard.CardLast4Digits</b>
        <br />
    The credit in your profile will be automatically charged every month in the amount of <b>@string.Format("{0:C}", Model.RecurringDonation.Amount)</b>.
    </text>
}
else
{
    <text>You are about to make a donation of <b>@string.Format("{0:C}", Model.OneTimeDonation.Amount)</b>
    to <b>@Model.OneTimeDonation.Bucket.Name</b> on the credit card <b>XXXX-XXXX-XXXX-@Model.CreditCard.CardLast4Digits</b></text>
}
<br />
<br />
<input class="button" id="submit" type="button" value="Confirm" />
<input class="button" id="cancel" type="button" value="Cancel" />

<input id="DonationID" type="hidden" value="@Model.DonationID" />
<input id="Recurring" type="hidden" value="@Model.Recurring" />
@section Scripts {
    <script src="/Areas/Membership/Scripts/Donations/confirm.js" type="text/javascript"></script>
}
